package core;

import util.Parameters;

public class Solution {
	private int generation;
	private double fitness;
	private double[] vector;
	
	public Solution(){
		vector = new double[Parameters.numberVector];
	}
	
	//auxiliares
	
	public String printVector(){
		String ret = "[ ";
		
		for (int i = 0; i < vector.length; i++) {
			ret += vector[i]+"  ";
		}
		ret += "]";
		
		return ret;
	}
	
	public void setVectorElement(int position, double value){
		vector[position] = value;
	}
	
	public double getVectorElement(int position){
		return vector[position];
	}

	public int getGeneration() {
		return generation;
	}

	public void setGeneration(int generation) {
		this.generation = generation;
	}

	public double getFitness() {
		return fitness;
	}

	public void setFitness(double fitness) {
		this.fitness = fitness;
	}

	public double[] getVector() {
		return vector;
	}

	public void setVector(double[] vector) {
		this.vector = vector;
	}
	
	 
}
